package com.maychat.mapper;

import com.maychat.pojo.AppUpdate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AppUpdateMapper {

    List<AppUpdate> selectCond(AppUpdate appUpdate);

    @Select("select * from app_update where id = #{id}")
    AppUpdate selectById(Integer id);

    void insert(AppUpdate appUpdate);

    void updateById(AppUpdate appUpdate);

    void updateByParam(AppUpdate val, AppUpdate cond);

    @Delete("delete from app_update where id = #{id}")
    void delById(Integer id);

    AppUpdate selectLatest(String uid);
}
